<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Using Object Script files</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body /* This body tag requires the use of one of the sets of banner and/or text div ids */
	{
	margin: 15px;
	padding: 0px 0px 0px 0px;
	background: #ffffff; 
	color: #000000;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 70%;
	width: 100%;
	/*overflow: expression('hidden');*/
	}
	
pre {
	font-size:11px;
}

h1 {
	color:maroon;
	border-bottom:1px solid silver;
	margin-bottom: 20px;
}
h2 {
	border-bottom:1px solid silver;
	margin-top:25px;
}

h4 {
	font-size:120%;
}
</style>

</head>

<body>
<h1>BizBlox Builder</h1>
<h2>Advanced Features</h2>
<h3>Using Object Script files </h3>
<p>Aside from importing SQL files, BizBlox Builder also allows easy generation of  DataObjects using custom Object Script files. </p>
<p>These simple hand-written files are particularly useful for  quickly creating DataTransferObjects that are a subset or superset of existing DataObjects, such as when you need to create small classes to transfer between web services, without passing extraneous or insecure data.</p>
<p>The following example shows an Object Script file to create a very simple CustomerSummary DataTransferObject:</p>
<pre>;customer summary used when retrieving recordsets
 Class CustomerSummary
 customerId as Guid
 firstName as String
 lastName as String
 email as String
 End Class</pre>
<p> An Object Script file can include multiple classes in the above format.</p>
<p>You can import this Object Script file using the same process as when importing a SQL script, outlined above. </p>
<p>The only change is instead of clicking <em>Step 1. Select SQL File</em>, you should click <em>Step 1. Select Script File</em> and choose the Object Script file. As with importing SQL scripts, your settings can then be saved as a BizBlox Project.</p>
</body>
</html>
